package com.ys.day29.Reflect.p6Reflect与Constructor对象;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

/**
 * 描述:  反射也可以获取 static 修饰的 XX
 *
 *
 * @author CodeYang
 * @version 2021/1/18 14:31
 */
public class Test {

    public static void main(String[] args) {
        Class<Student> studentClass = Student.class;
        Field[] declaredFields = studentClass.getDeclaredFields();
        for (Field declaredField : declaredFields) {
            System.out.println(declaredField);
        }
    }
}
